package info.woodcock.security.service.imp;

import info.woodcock.security.dao.MysqlStudentDao;
import info.woodcock.security.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudentServiceImp implements StudentService {

    @Autowired
    private MysqlStudentDao mysqlStudentDao;

    @Override
    public List<Map<String, Object>> getAllStudentsFromMysql() {
        return mysqlStudentDao.getAllStudents();
    }
}
